package com.ruoyi.admin.service;

import java.util.List;
import java.util.Map;

import com.baomidou.mybatisplus.extension.service.IService;
import com.ruoyi.admin.domain.MlOrderDto;

/**
 * 订单Service接口
 * 
 * @author ruoyi
 * @date 2025-03-18
 */
public interface IMlOrderDtoService extends IService<MlOrderDto>
{
    /**
     * 查询订单
     * 
     * @param userId 用户id
     * @return 订单
     */
    public Map<String,Object> selectGoodsInfoWhereUserId(Long userId);
    /**
     * 查询订单
     *
     * @param id 订单主键
     * @return 订单
     */
    public MlOrderDto selectMlOrderDtoById(Long id);

    /**
     * 查询订单列表
     * 
     * @param mlOrderDto 订单
     * @return 订单集合
     */
    public List<MlOrderDto> selectMlOrderDtoList(MlOrderDto mlOrderDto);

    /**
     * 新增订单
     * 
     * @param mlOrderDto 订单
     * @return 结果
     */
    public int insertMlOrderDto(MlOrderDto mlOrderDto);

    /**
     * 修改订单
     * 
     * @param mlOrderDto 订单
     * @return 结果
     */
    public int updateMlOrderDto(MlOrderDto mlOrderDto);

    /**
     * 批量删除订单
     * 
     * @param ids 需要删除的订单主键集合
     * @return 结果
     */
    public int deleteMlOrderDtoByIds(Long[] ids);

    /**
     * 删除订单信息
     * 
     * @param id 订单主键
     * @return 结果
     */
    public int deleteMlOrderDtoById(Long id);
}
